package test;

import static org.junit.jupiter.api.Assertions.*;

import java.util.Date;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

import com.hcandtx.Bms.Vo.OrderVo;
import com.hcandtx.Bms.bean.Order;
import com.hcandtx.Bms.mapper.OrderMapper;
import com.hcandtx.Bms.service.IOrderService;
import com.hcandtx.Bms.service.Impl.OrderServiceImpl;
@SpringJUnitConfig(locations = {"classpath:config/spring/spring-dao.xml","classpath:config/spring/spring-service.xml"})	
class Ordertest {

	@Autowired
	OrderMapper orderMapper;
	
	@Autowired
	IOrderService orderService;
	
	@Test
	void test() {
		Order order=new Order();
		order.setId(1);
		order.setOrdId(1);
		order.setOrderDate(new Date());
		order.setProId(4);
		order.setUserId(5);
	
	
	System.out.println(orderService.findAll());
	
		
	}

}
